xcsv: Take parameter at right position.
authoroliskoli <oliskoli>
Fri, 14 Mar 2008 05:28:12 +0000 (05:28 +0000)
committeroliskoli <oliskoli>
Fri, 14 Mar 2008 05:28:12 +0000 (05:28 +0000)
xcsv.c

diff --git a/xcsv.c b/xcsv.c
index a9bfd3d106758b98e0432da9199db47a5e703741..4dbc437e19cf20ecc827b6b0079e52315a854e0f 100644 (file)
--- a/xcsv.c
+++ b/xcsv.c
@@ -333,7 +333,7 @@ xcsv_parse_style_line(const char *sbuff)
        } else
 
        if (ISSTOKEN(sbuff, "DATUM")) {
-           p = csv_stringtrim(&sbuff[8], "\"", 1);
+           p = csv_stringtrim(&sbuff[5], "\"", 1);
            xcsv_file.gps_datum = GPS_Lookup_Datum_Index(p);
            is_fatal(xcsv_file.gps_datum < 0, MYNAME ": datum \"%s\" is not supported.", p);
            xfree(p);